//
//  MLGameLayer.h
//  WaterProof
//
//  Created by victor0321 on 12/1/4.
//  Copyright 2012年 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "cocos2d.h"
#import "StageData.h"

#import "MLLoadingScene.h"
#import "MLStage1.h"
#import "MLStage2.h"
#import "MLUserInterface.h"
#import "MLWin.h"
#import "MLLose.h"

#define GRID_MAX_WIDTH 8
@interface MLGameLayer : CCLayer {
    CGSize screenSize;
    StageScenes stage;
    int lifeDowCriteria;
    float winTime;
}

+(MLGameLayer*) sharedLayer;
+(id)sceneWithStage:(StageScenes)_stage;
-(id)initWithStage:(StageScenes)_stage;

-(CGPoint)locationFromTouch:(UITouch*)touch;
-(CGPoint)locationFromTouches:(NSSet *)touches;
-(void)transitionToMenu;
-(void)restartStage;
-(void)tick:(ccTime)delta;

-(void)createScene;

//@property (readonly) MLStage1* stage1;
//@property (readonly) MLStage2* stage2;
//@property (readonly) MLStage3* stage3;
//@property (readonly) MLStage4* stage4;
//@property (readonly) MLStage5* stage5;
//@property (readonly) MLStage6* stage6;
//@property (readonly) MLUserInterface* userInterface;
@end
